package code13;

public class ModCalc {
    public static void main(String[] args) {
        int num = -10;  // 取模运算 符号影响结果

        System.out.println(num % 2);
        System.out.println(num % -3);
        System.out.println(num % 4);
        System.out.println(num % 5);
        System.out.println(num % -6);
    }
    }
